package com.saihai.jiankang.ufTjjgsfyc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.saihai.jiankang.ufTjjgsfyc.mapper.UfTjjgsfycMapper;
import com.saihai.jiankang.ufTjjgsfyc.domain.UfTjjgsfyc;
import com.saihai.jiankang.ufTjjgsfyc.service.IUfTjjgsfycService;

/**
 * 体检异常Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-31
 */
@Service
public class UfTjjgsfycServiceImpl implements IUfTjjgsfycService 
{
    @Autowired
    private UfTjjgsfycMapper ufTjjgsfycMapper;

    /**
     * 查询体检异常
     * 
     * @param id 体检异常主键
     * @return 体检异常
     */
    @Override
    public UfTjjgsfyc selectUfTjjgsfycById(Long id)
    {
        return ufTjjgsfycMapper.selectUfTjjgsfycById(id);
    }

    /**
     * 查询体检异常列表
     * 
     * @param ufTjjgsfyc 体检异常
     * @return 体检异常
     */
    @Override
    public List<UfTjjgsfyc> selectUfTjjgsfycList(UfTjjgsfyc ufTjjgsfyc)
    {
        return ufTjjgsfycMapper.selectUfTjjgsfycList(ufTjjgsfyc);
    }

    /**
     * 新增体检异常
     * 
     * @param ufTjjgsfyc 体检异常
     * @return 结果
     */
    @Override
    public int insertUfTjjgsfyc(UfTjjgsfyc ufTjjgsfyc)
    {
        return ufTjjgsfycMapper.insertUfTjjgsfyc(ufTjjgsfyc);
    }

    /**
     * 修改体检异常
     * 
     * @param ufTjjgsfyc 体检异常
     * @return 结果
     */
    @Override
    public int updateUfTjjgsfyc(UfTjjgsfyc ufTjjgsfyc)
    {
        return ufTjjgsfycMapper.updateUfTjjgsfyc(ufTjjgsfyc);
    }

    /**
     * 修改体检异常
     *
     * @param ufTjjgsfyc 体检异常
     * @return 结果
     */
    @Override
    public int updateUfTjjgsfycRwid(UfTjjgsfyc ufTjjgsfyc)
    {
        return ufTjjgsfycMapper.updateUfTjjgsfycRwid(ufTjjgsfyc);
    }


    /**
     * 批量删除体检异常
     * 
     * @param ids 需要删除的体检异常主键
     * @return 结果
     */
    @Override
    public int deleteUfTjjgsfycByIds(Long[] ids)
    {
        return ufTjjgsfycMapper.deleteUfTjjgsfycByIds(ids);
    }

    /**
     * 删除体检异常信息
     * 
     * @param id 体检异常主键
     * @return 结果
     */
    @Override
    public int deleteUfTjjgsfycById(Long id)
    {
        return ufTjjgsfycMapper.deleteUfTjjgsfycById(id);
    }
}
